package com.tjbklx1.thread.chap02.demo01;

public class PrintPersonThread extends Thread{
	
	private Person person;
	
	PrintPersonThread(Person person) {
		this.person=person;
//		person = new Person("Bob","BBC");  //final类型的重新赋值也没用的 
	}
	
	@Override
	public void run() {
		while(true){
			System.out.println(person.toString());
		}
	}

}
